﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Collections.ObjectModel;

namespace VideoRentalShop.Model
{
    public class Genre
    {
        public Genre()
        {
            Details = new ObservableCollection<GenreDetails>();
        }


        [Required]
        public long Id { get; set; }
        
        [Required]
        [MinLength(1)]
        [MaxLength(30)]
        public string Title { get; set; }

        public virtual ObservableCollection<GenreDetails> Details { get; private set; }
    }
}
